<!-- <h1>{{200000 | tok}}</h1> -->
<div class="maxBox">
    <div class="title">购物车</div>
<div *ngIf="CartList?.length==0" class="cartBox">
    <img src="../../assets/images/shoppingcart/emptyShoppingCart.png"/>
    <div>购物车还是空的</div>
</div>
<div *ngIf="CartList?.length>0" >
    <div *ngFor="let cart of CartList;let i = index" class="goodsMaxBox">
        <div class="checkbox">
             <input  (click)="clickSelected($event,cart)" type="checkbox" class="select" [checked]="selectMap[cart.goods?.id]"/>
        </div>
       
        <div class="goodsBox" (click)="clickIn(cart)">
            <img  class="cartGoodsImg" src="{{cart.goods.get('goodsImg')}}" /> 
            <div class="text">
              <div class="goodsTitle">{{cart.goods.get('goodsName')}}</div>
              <div class="goodsPrice">{{cart.goods.get('goodsPrice')}}</div>
            </div>
        </div>
        <div class="deleteBox">
             <button (click)="deleteCartList(i)" class="delete">删除</button>
             <div class="upBtn">
                <button (click)="changeCount(cart,-1)">-</button>
                {{cart.count}}
                <button (click)="changeCount(cart,1)">+</button>
             </div>
        </div>
    <!-- </div>
    <button (click)="getGoodsCart()">111</button>
    </div> -->
    
</div>

<div class="bottomBox">
    <div class="allselectBox">
        <input [(ngModel)]="isAllSelect" (click)="selectAll($event)" type="checkbox" name="allselect"/> 全选
    </div>
    <div class="goSum">
        合计：<span style="color: rgb(229, 57, 57);">￥{{priceSum}}</span>
    </div>
    <div class="goBuy">
        <button (click)="goPay()">结算</button>
    </div>
    
</div>
</div>